package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_dynamic_source;

import cn.com.api.mapper.ApiU_dynamic_sourceMapper;

import cn.com.api.service.ApiU_dynamic_sourceService;

/**
 * 
 **/
@Service
public class U_dynamic_sourceServiceImplBase {
	@Autowired
	private ApiU_dynamic_sourceMapper apiU_dynamic_sourceMapper;
    
    // 根据id获取
	public ApiU_dynamic_source findU_dynamic_sourceById(Integer id){
		ApiU_dynamic_source u_dynamic_source = apiU_dynamic_sourceMapper.findU_dynamic_sourceById( id );
		return u_dynamic_source;
	}
    
    //查看数据集
	public List<ApiU_dynamic_source> findU_dynamic_sources(){
        List<ApiU_dynamic_source> u_dynamic_sources = apiU_dynamic_sourceMapper.findU_dynamic_sources();
		return u_dynamic_sources;
    }
   
    //根据条件查看数据集
	public List<ApiU_dynamic_source> findU_dynamic_sourcesByMap(HashMap condition){
        List<ApiU_dynamic_source> u_dynamic_sources = apiU_dynamic_sourceMapper.findU_dynamic_sourcesByMap(condition);
		return u_dynamic_sources;
    }
    
	// 添加
	public int insertU_dynamic_source(ApiU_dynamic_source u_dynamic_source){
		int ret_I= apiU_dynamic_sourceMapper.insertU_dynamic_source(u_dynamic_source);
		return ret_I;
	}

	// 修改
	public int updateU_dynamic_source(ApiU_dynamic_source u_dynamic_source){
		int ret_I= apiU_dynamic_sourceMapper.updateU_dynamic_source(u_dynamic_source);
		return ret_I;
	}
	
    // 删除
	public int deleteU_dynamic_source(Integer id){
		int ret_I= apiU_dynamic_sourceMapper.deleteU_dynamic_source( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


